package com.yanqu.road.entity.drugstore;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_drug_chu_fang", desc = "处方")
public class UserDrugChuFangData extends DataObject {

    @FieldTypeAnnotation(update = true, select = true, desc = "玩家")
    private long userId;

    @FieldTypeAnnotation(update = true, desc = "处方")
    private int chuFang;

    @FieldTypeAnnotation(desc = "等级")
    private int lv;

    @FieldTypeAnnotation(desc = "熟练度")
    private long shuLianDu;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getChuFang() {
        return chuFang;
    }

    public void setChuFang(int chuFang) {
        if(this.chuFang != chuFang) {
            this.chuFang = chuFang;
            setUpdateOption();
        }
    }

    public int getLv() {
        return lv;
    }

    public void setLv(int lv) {
        if(this.lv != lv) {
            this.lv = lv;
            setUpdateOption();
        }
    }

    public long getShuLianDu() {
        return shuLianDu;
    }

    public void setShuLianDu(long shuLianDu) {
        if(this.shuLianDu != shuLianDu) {
            this.shuLianDu = shuLianDu;
            setUpdateOption();
        }
    }
}
